# -*- coding: utf-8 -*-
from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from paniersApp import views

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'paniers.views.home', name='home'),
    # url(r'^paniers/', include('paniers.foo.urls')),

    url(r'^$', views.index, name='index'),
    url(r'^participant/change/$', views.participant_change, name='participant_change'),
    url(r'^participant$', views.participant, name='participant'),
    url(r'^liste_paniers/([0-9]{4})/([0-9]+)/([0-9]+)$', views.listpaniers, name='liste_paniers'),
    
    # Uncomment the admin/doc line below to enable admin documentation:
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    
    url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
    
)
